import { message } from "antd";
export const copyText = (text, msg) => {
    let input = document.createElement("input");
    input.value = text;
    document.body.appendChild(input);
    input.select();
    document.execCommand("Copy");
    message.success(msg || "复制成功");
    document.body.removeChild(input);
};
